<h1>Account types List</h1>

<table>
  <thead>
    <tr>
      <th>Id account type</th>
      <th>Type</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($account_types as $account_type): ?>
    <tr>
      <td><a href="<?php echo url_for('types/show?id_account_type='.$account_type->getIdAccountType()) ?>"><?php echo $account_type->getIdAccountType() ?></a></td>
      <td><?php echo $account_type->getType() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('types/new') ?>">New</a>
